package net.ericaro.neojavagen.expressions;

/**
 * <b>PrimaryClassInstanceCreationExpression</b> ::= <{@link net .ericaro .neojavagen .expressions .Primary Primary}> <
 * {@link net .ericaro .neojavagen .expressions .NormalClassInstanceCreationExpression NormalClassInstanceCreationExpression}>
 * 
 * @author eric@ericaro.net
 */
public class PrimaryClassInstanceCreationExpression extends net.ericaro.neojavagen.JavaPartComposition implements net.ericaro.neojavagen.expressions.ClassInstanceCreationExpression {
	private net.ericaro.neojavagen.expressions.NormalClassInstanceCreationExpression normalClassInstanceCreationExpression;

	private net.ericaro.neojavagen.expressions.Primary primary;

	public PrimaryClassInstanceCreationExpression(net.ericaro.neojavagen.expressions.Primary primary, net.ericaro.neojavagen.expressions.NormalClassInstanceCreationExpression normalClassInstanceCreationExpression) {
		super();
		this.primary = primary;
		this.normalClassInstanceCreationExpression = normalClassInstanceCreationExpression;
	}

	public net.ericaro.neojavagen.expressions.NormalClassInstanceCreationExpression getNormalClassInstanceCreationExpression() {
		return normalClassInstanceCreationExpression;
	}

	public net.ericaro.neojavagen.expressions.Primary getPrimary() {
		return primary;
	}

	public void setNormalClassInstanceCreationExpression(net.ericaro.neojavagen.expressions.NormalClassInstanceCreationExpression normalClassInstanceCreationExpression) {
		this.normalClassInstanceCreationExpression = normalClassInstanceCreationExpression;
	}

	public void setPrimary(net.ericaro.neojavagen.expressions.Primary primary) {
		this.primary = primary;
	}

	@Override
	public java.lang.String toString() {
		return print(primary, normalClassInstanceCreationExpression);
	}
}
